<script>
    function del(url) {
        $('#delete').modal('show');
        $('#delete').find('form').attr('action', url);
    }

    function delload() {
        $('#delbtn').html('<i class="fa fa-spinner fa-pulse"></i>').css('width', '54px');
    }
</script>
<div id="delete" class="modal fade">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="mySmallModalLabel">提示</h4>
            </div>
            <div class="modal-body">
                <p>确定删除吗？</p>
            </div>
            <div class="modal-footer">
                <form action="" method="POST">
                    @method('DELETE')
                    @csrf
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button id="delbtn" class="btn btn-danger" onclick="delload()">删除</button>
                </form>
            </div>
        </div>
    </div>
</div>